package com.zw.rpc.codec.impl;

import com.alibaba.fastjson.JSON;
import com.zw.rpc.codec.Encoder;

/**
 * @author zw
 */
public class JsonEncoder implements Encoder {

    @Override
    public byte[] encode(Object obj) {
        return JSON.toJSONBytes(obj);
    }
}
